package com.inspectionwork.web.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.inspectionwork.model.DeviceBusiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceBusinessMapper extends BaseMapper<DeviceBusiness> {

    IPage<DeviceBusiness> deviceListPage(IPage page, @Param("param") JSONObject jsonParam);

    DeviceBusiness getByParam(JSONObject jsonParam);

    /**
     *
     * @Title: insertZB <br>
     * @Description: (添加到DeviceBusiness中) <br>
     * @author 石延杰<br>
     * @param params
     */
    void insertZB(List<DeviceBusiness> list);

    DeviceBusiness getDeviceBusinessById(JSONObject jsonParam);
}
	